<input type="text" style="<?php echo isset($param['style']) ? $param['style'] : '' ?>" id="<?php echo $id;?>" name="<?php echo $name;?>" class="input-text" value="<?php echo $value;?>"><span class="num"><?php echo isset($setting['inputtip']) ? $setting['inputtip'] : '';?></span><span class="validate-error" id="validate-error-<?php echo $id?>"></span>

<script>
$(function(){
	$('#<?php echo $id;?>').bind('focus keyup input paste',function(){
		//$(this).next('.num').text($(this).attr("value").length);
	});
});
</script>